]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Use MetaDisplay input focus API
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Jan 2019 16:14:24 +0000 (17:14 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 24 May 2019 10:24:06 +0000 (12:24 +0200)
Replaces use of (now removed) MetaX11Display focus API (which happened to
work for wayland too).

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/378

src/shell-app.c

index 10efa9135f327cb76f17e2e831a2dcfe5ee80715..752316051ece7deb28caf9ae243f6b14ac868a97 100644 (file)
@@ -1151,11 +1151,10 @@ _shell_app_handle_startup_sequence (ShellApp            *app,
   if (starting && shell_app_get_state (app) == SHELL_APP_STATE_STOPPED)
     {
       MetaDisplay *display = shell_global_get_display (shell_global_get ());
-      MetaX11Display *x11_display = meta_display_get_x11_display (display);
 
       shell_app_state_transition (app, SHELL_APP_STATE_STARTING);
-      meta_x11_display_focus_the_no_focus_window (x11_display,
-                                                  meta_startup_sequence_get_timestamp (sequence));
+      meta_display_unset_input_focus (display,
+                                      meta_startup_sequence_get_timestamp (sequence));
       app->started_on_workspace = meta_startup_sequence_get_workspace (sequence);
     }